<%@page import="com.kaishengit.entity.Idea"%>
<%@page import="com.kaishengit.entity.Project"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>公司项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body class="body">
	
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="#">公司项目管理系统 PMS</a>
			</div>
		</div>
	</div>
	<%
		request.setCharacterEncoding("UTF-8");
		Project p = (Project)request.getAttribute("project");
	 %>
	
	
	<div class="container">
	  <div class="row">
		<div class="span3">
			<div style="padding: 8px 0;" class="well">
				<ul class="nav nav-list">
				  <li class="nav-header">新Apple总部项目</li>
				  <li class="divider"></li>
				  <li><a href="project.jsp"><i class="icon-home"></i>最新动态</a></li>
				  <li>
					<a href="goal.jsp"><i class="icon-flag"></i>目标</a>
				  </li>
				  <li><a href="document.jsp"><i class="icon-folder-open"></i>资料库</a></li>
				  <li><a href="file.jsp"><i class="icon-file"></i>文件共享</a></li>
				  <li><a href="contact.jsp"><i class="icon-user"></i>联系人</a></li>
				  <li class="active"><a href="#"><i class="icon-white icon-fire"></i>想法</a></li>
				</ul>
			</div>
		</div>
		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="idea.jsp"><i class="icon-fire"></i>想法</a>
				</li>
				<li class="pull-right"><i class="icon-plus"></i><a href="new_idea.jsp" class="link-black">发表想法</a></li>
			</ul>
			<%
				List<Idea> ilist  = (List<Idea>)request.getAttribute("idealist");
				for(Idea i:ilist){
			%>
			
			<div class="wall" style="margin-bottom:20px;">
				<blockquote>
				  <h4><a href="idea_show.jsp"><%=i.getName() %></a></h4>
				  <p style="font-size:14px;line-height:1.5;"><%=i.getContent() %></p>
				  <small><%=i.getUserID() %>发布于 1个月前</small>
				  <a href="" title="编辑"><i class="icon-pencil"></i></a>
				  <a href="" title="删除"><i class="icon-trash"></i></a>
				</blockquote>
				
				
			<%} %>	
				<div class="pagination pull-right">
				  <ul>
					<li><a href="#">Prev</a></li>
					<li class="active">
					  <a href="#">1</a>
					</li>
					<li><a href="#">2</a></li>
					<li><a href="#">3</a></li>
					<li><a href="#">4</a></li>
					<li><a href="#">Next</a></li>
				  </ul>
				</div>
				
				<div class="clear"></div>
			</div>
		</div>
	  </div>
	</div>
</body>
</html>